package FlowGram.Application.CommandHost;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import FlowGram.Application.Application;


public class CommandHost extends JPanel {
	
	private ArrayList<CommandItem> cmds;
	static int size;
	static ExpandingPanels ep;
	static JPanel panel;
	
	public CommandHost(){
		super(new GridLayout(0,1));
		
		size = 300;			//get the size of the commandhost
		
		ep = new ExpandingPanels(this);
		
		panel = ep.getComponent();
		
		this.add(panel);
		
        cmds = new ArrayList<CommandItem>(4);
	}
	
	public void addCommand(CommandItem command){
		
	}

	void removeCommand(String commandName){
		
	}
	
	void drawCommands(JPanel panel){
		
	}
	
	public ArrayList<CommandItem> getCmds() {
		return cmds;
	}
    public static void main(String[] args)  
    {  
        JFrame f = new JFrame();
        CommandHost ch = new CommandHost();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
//        f.getContentPane().add(new JScrollPane(ep.getComponent()));  
        f.add(ch);
        f.setSize(360,500);  
        f.setLocation(200,100);  
        f.setVisible(true);  
    }  
	
	
	
}
